/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * plugin.h
 * Copyright (C) suren 2008 <surenspost@gmail.com>
 * 
 * plugin.h is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * plugin.h is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _LANGUAGE_SUPPORT_PYTHON_H_
#define _LANGUAGE_SUPPORT_PYTHON_H_

#include <libanjuta/anjuta-plugin.h>

extern GType language_support_python_get_type (GTypeModule *module);
#define ANJUTA_TYPE_PLUGIN_PYTHON (language_support_python_get_type (NULL))
#define ANJUTA_PLUGIN_PYTHON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_PYTHON, PythonSupportPlugin))
#define ANJUTA_PLUGIN_PYTHON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_PYTHON, PythonSupportPlugin))
#define ANJUTA_IS_PLUGIN_PYTHON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_PYTHON))
#define ANJUTA_IS_PLUGIN_PYTHON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_PYTHON))
#define ANJUTA_PLUGIN_PYTHON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_PYTHON, PythonSupportPluginClass))

typedef struct _PythonSupportPlugin PythonSupportPlugin;
typedef struct _PythonSupportPluginClass PythonSupportPluginClass;

struct _PythonSupportPlugin{
	AnjutaPlugin parent;
	
	AnjutaPreferences *prefs;
	GtkWidget *widget;
	
	
	gint uiid;
	gint editor_watch_id;
	GObject *current_editor;
	gboolean python_support_enabled;
	gchar *language;
		
	gint python_tab_width_size;
	gint python_spacing_after_braces;
	
	GtkActionGroup *action_group;
};

struct _PythonSupportPluginClass{
	AnjutaPluginClass parent_class;
};

#endif
